<%@ page language="java" pageEncoding="utf-8"
	contentType="text/html;charset=UTF-8"%>
<style>
* {
	margin: 0px;
	padding: 0px;
}

.yao_xiang {
	background:
		url(http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/background.png)
		no-repeat center scroll;
	height: 4200px;
	font-family: "微软雅黑", "黑体", "宋体";
}

.haoyaoshi {
	margin: 200px;
	padding: 0px;
	width: 981px;
	padding-top: 584px;
	margin: 0 auto;
	text-align: center;
}

table.haoyaoshi_table {
	margin-top: 10px;
	margin-left: 157px;
}

table.haoyaoshi_table tr {
	line-height: 40px;
}

table.haoyaoshi_table tr td {
	font-size: 20px;
	color: #FFF;
}

input {
	width: 407px;
	height: 30px;
}

select {
	width: 200px;
	height: 30px;
}

text {
	border: 1px solid #e0e0e0;
}

.hao_chanpin {
	width: 973px;
	height: 320px;
	margin-top: 130px;
}

ul.chanpin {
	width: 216px;
	height: 320px;
	float: left;
	margin-left: 5px;
	margin-top: 20px;
}

ul.chanpin li {
	list-style: none;
	margin-top: 8px;
	font-size: 24px;
	font-family: "微软雅黑", "黑体", "宋体";
	color: #FFF;
}

strong {
	color: #ff0000;
	font-size: 24px;
	line-height: 10px;
	font-family: "幼圆", "微软雅黑", "黑体", "宋体";
}
</style>

<div class="yao_xiang">
	<div class="haoyaoshi">
		<img
			src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/1.png"
			width="981" height="705" /> <img
			src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/2.png"
			width="981" height="691" /> <img
			src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/3.png"
			width="981" height="196" style="margin-top: 112px" /> <img
			src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/4.png"
			width="981" height="196" style="margin-top: 26px;" /> <img
			src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/5.png"
			width="981" height="161" />
		<script type="text/javascript">
			function commit() {
				if (document.getElementById('name').value
						&& document.getElementById('email').value
						&& document.getElementById('phone').value
						&& document.getElementById('hctag').value) {
					if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
							.test(document.getElementById('email').value)) {
						alert("请正确填写您的Email邮箱!");
						return false;
					}

					document.getElementById('submitForm').submit();
				} else {
					alert('为保证您顺利获取云药箱，请正确填写表格');
					return false;
				}
			}
			function dealResult(obj) {
				var doc;
				if (document.all) {//IE
					doc = obj.document;
				} else {//Firefox
					doc = obj.contentDocument;
				}
				var resultStr = doc.body.innerHTML;
				if (resultStr == null || resultStr.length == 0) {
					return false;
				} else {
					var resultJson = eval('(' + resultStr + ')');
					if (resultJson.result == 1) {
						alert('预约成功');
						location.reload();
					} else {
						alert('提交数据出错');
					}
				}
			}
		</script>

		<form id="submitForm" method="post" target="resultFrame"
			action="http://ucenter.ehaoyao.com/zhuanti/yaoxiang/commit.json">
			<input type="hidden" name="tips" value="预约成功" />
			<table class="haoyaoshi_table" cellspacing="20px;">
				<tr>
					<td>姓名：</td>
					<td><input type="text" id="name" name="name"
						onfocus="this.select()"
						onmouseover="this.style.borderColor='#2cbd00'"
						onmouseout="this.style.borderColor=''" /></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td align="left"><select name="sex" id="sex">
							<option value="1" selected="selected">男</option>
							<option value="2">女</option>
					</select> <!-- <input type="text" id="sex" name="sex" onfocus="this.select()" onmouseover="this.style.borderColor='#2cbd00'" onmouseout="this.style.borderColor=''"  /> -->
					</td>
				</tr>
				<tr>
					<td>健康状况：</td>
					<td><input type="text" id="hctag" name="hctag"
						onfocus="this.select()"
						onmouseover="this.style.borderColor='#2cbd00'"
						onmouseout="this.style.borderColor=''" /></td>
				</tr>
				<tr>
					<td>电子邮箱：</td>
					<td><input type="text" id="email" name="email"
						onfocus="this.select()"
						onmouseover="this.style.borderColor='#2cbd00'"
						onmouseout="this.style.borderColor=''" /></td>
				</tr>
				<tr>
					<td>联系电话：</td>
					<td><input type="text" id="phone" name="phone"
						onfocus="this.select()"
						onkeyup="this.value=this.value.replace(/\D/g,'')"
						onafterpaste="this.value=this.value.replace(/\D/g,'')"
						onmouseover="this.style.borderColor='#2cbd00'"
						onmouseout="this.style.borderColor=''" /></td>
				</tr>
			</table>

			<a href="javascript:void(0);" onclick="return commit();"><img
				src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/buttom.png"
				width="228" height="55" style="margin-top: 24px;" /></a>
		</form>
		<iframe name="resultFrame" id="resultFrame" style="display: none;"
			onload="dealResult(this);"> </iframe>

		<div class="hao_chanpin">
			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_1.png"
					width="216" height="216" /></li>
				<li>校园药箱</li>
				<br />
				<strong>￥99</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19904.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_2.png"
					width="216" height="216" /></li>
				<li>夕阳红健康药箱</li>
				<br />
				<strong>￥259.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19905.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_3.png"
					width="216" height="216" /></li>
				<li>家庭必备小药箱</li>
				<br />
				<strong>￥99.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-10214.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_4.png"
					width="216" height="216" /></li>
				<li>甜蜜爱侣药箱</li>
				<br />
				<strong>￥158.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19903.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_5.png"
					width="216" height="216" /></li>
				<li>职业病防治药箱</li>
				<br />
				<strong>￥198.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19279.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_6.png"
					width="216" height="216" /></li>
				<li>旅游药箱干旱地带专</li>
				<br />
				<strong>￥58.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19479.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_7.png"
					width="216" height="216" /></li>
				<li>严寒地带专用药箱</li>
				<br />
				<strong>￥68.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19480.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

			<ul class="chanpin">
				<li><img
					src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/yao_11.png"
					width="216" height="216" /></li>
				<li>考生补脑必备药箱</li>
				<br />
				<strong>￥168.0</strong>
				<li class="footer_button"><a
					href="http://www.ehaoyao.com/product-19906.html" target="_blank"><img
						src="http://img01.img.ehaoyao.com/zx/uploads/special/2014/09/37065/img/footer_button.png"
						width="114" height="31" /></a></li>
			</ul>

		</div>
	</div>
</div>